import request from '@/router/axios';
//折线图展示
export const chartData = (type, params) => {
  return request({
    url: `api/mes-product/stat-uph-wo/chart`,
    method: 'get',
    params: params
  });
};

// 分页查询
export const getProductTableList = (params) => {
  return request({
    url: '/api/mes-product/stat-uph-wo/page',
    method: 'get',
    params: params
  });
};
export const getWorkshopTableList = (params) => {
  return request({
    url: '/api/mes-product/stat-fpy-workshop/page',
    method: 'get',
    params: params
  });
};
export const getLineTableList = (params) => {
  return request({
    url: '/api/mes-product/stat-fpy-line/detail-page',
    method: 'get',
    params: params
  });
};
export const getFactoryTableList = (params) => {
  return request({
    url: '/api/mes-product/stat-fpy-factory/page',
    method: 'get',
    params: params
  });
};

export const getDetailProductTableList = (params) => {
  return request({
    url: '/api/mes-product/stat-uph-wo/page/workOrder',
    method: 'get',
    params: params
  });
};

export const getDetailWorkOrderTableList = (params) => {
  return request({
    url: '/api/mes-product/stat-uph-wo/page/workSection',
    method: 'get',
    params: params
  });
};

export const getDetailWorkshopTableList = (params) => {
  return request({
    url: '/api/mes-product/stat-fpy-workshop/page/workOrder',
    method: 'get',
    params: params
  });
};
export const getDetailLineTableList = (params) => {
  return request({
    url: '/api/mes-product/stat-fpy-line/detail-page',
    method: 'get',
    params: params
  });
};
export const getDetailFactoryTableList = (params) => {
  return request({
    url: '/api/mes-product/stat-fpy-factory/page/workOrder',
    method: 'get',
    params: params
  });
};
